const user = {
  username: "miranda",
  age: 20
};

const isAdult = age => {
  if (age > 18) {
    console.log("成年人");
  } else {
    console.log("未成年");
  }
};

export {user, isAdult};